<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小米元素布局案例</title>
    <style>
        * {
            padding: 0%;
            margin: 0%;
        }
        .box {
            width: 1230px;
            height: 500px;
            background-color: pink;
            margin: 0 auto;
        }
        .left {
            float: left;
            width: 235px;
            height: 500px;
            background-color: skyblue;

        }

        .right {
            float: right;
            width: 995px;
            height: 500px;
            background-color: purple;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="left">左侧</div>
        <div class="right">右侧</div>
    </div>
</body>
</html>